package com.woniuxy.dao;
import com.woniuxy.entity.Perm;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Set;

@Mapper
public interface PermDao {
    int findCountByNameOrId(Perm perm);
    List<Perm> selectAll();
    int addPerm(Perm perm);
    int updatePerm(Perm perm);
    int deletePermById(int id);
    List<Perm> findPermByName(String name);
    List<Perm> search(String name);
    Set<String> findPermBySetRoles(String username);
}
